Generalized Linear Model
Overview
A generalized linear model (GLM) extends ordinary linear regression so that the outcome can be continuous, binary, count, or another exponential-family outcome.
Core idea
A GLM models the expected outcome through a link function applied to a linear predictor:
where
Three Components
- Random component: the outcome distribution, e.g. Normal, Bernoulli, Poisson.
- Systematic component: the linear predictor
. - Link function: maps the expected outcome to the linear predictor scale.
In other words, a GLM combines:
- a linear predictor:
- a link function / nonlinearity:
- a noise model / outcome distribution:
chosen family
Common GLM Examples
| Model | Outcome type | Distribution | Link function | Typical question |
|---|---|---|---|---|
| Linear regression (Regression#Linear Regression) | Continuous | Normal | Identity | How does |
| Logistic regression (Regression#Logistic Regression) | Binary | Bernoulli | Logit | How does |
| Poisson regression | Count | Poisson | Log | How does |
Linear Regression as a GLM
- Link: identity
- Interpretation: coefficients are additive changes in the expected value of
.
Logistic Regression as a GLM
- Link: logit
- Interpretation: coefficients are changes in log-odds; exponentiated coefficients are odds ratio.
- The odds ratio is the ratio of two groups' odds of some outcome:
- Odds ratios can be derived from logistic coefficients:
Poisson Regression as a GLM
Equivalently:
- Link: log
- Interpretation: coefficients are changes in the log expected count; exponentiated coefficients are rate ratios.
Relationship to Other Models
Relationship to Mixed Models
see Regression#
Relationship to GEE
Generalized estimating equations (GEE) extend the GLM idea to correlated observations, such as repeated measurements from the same patient in Longitudinal Data Analysis.
| Feature | GLM | GEE |
|---|---|---|
| Data | Independent observations | Correlated or repeated observations |
| Target | Covariate–outcome association | Population-average association |
| Outcomes | Continuous, binary, count, etc. | Same outcome families via link functions |
| Correlation | Usually assumes independence | Specifies a working within-subject correlation |
| Interpretation | Model-specific mean association | Marginal / population-average association |
GEE is closely related to GLMs, but it is not simply another GLM distribution. It is an estimation framework for correlated data.
Related Notes
- Regression — linear and logistic regression foundations
- Linear Mixed Model — mixed-effects models for continuous repeated or clustered outcomes
- Longitudinal Data Analysis — choosing among LMM, GEE, and other longitudinal methods
- ANOVA & Post-hoc Tests — classical linear-model comparisons
- Random Variables & Probability distributions — distributions used as GLM outcome families